Tweaks to count-words and count-words-region behavior.
authorChong Yidong <cyd@gnu.org>
Mon, 5 Mar 2012 06:10:11 +0000 (14:10 +0800)
committerChong Yidong <cyd@gnu.org>
Mon, 5 Mar 2012 06:10:11 +0000 (14:10 +0800)
commit79cb5d3ee217730e6f53987bc5598c32f0788d51
tree30311b1ac0eba2c95397a56c79ea4cbcd42a9893
parent38017bd438057696fa38389ecb6c543881297016
Tweaks to count-words and count-words-region behavior.
In particular, make count-words more analogous to the existing
count-lines function.

* lisp/simple.el (count-words): If called from Lisp, return the word
count, for symmetry with `count-lines'.  Arglist changed.
(count-words--message): Args changed.  Consolidate counting code
from count-words and count-words-region.
(count-words-region): Caller changed.
(count-lines-region): Make it an obsolete alias.
etc/NEWS
lisp/ChangeLog
lisp/simple.el